package com.qfmy.model.entity.userInfo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDate;
import java.time.LocalDateTime;

/**
 * @author 清风明月
 * @Package com.qfmy.model.entity.userInfo
 * @date 2025/11/26
 * @description 用户签到状态表实体
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@SuppressWarnings("all")
public class SignInRecord {

    @Schema(description = "记录ID，自增")
    private Long id;

    @Schema(description = "用户ID（关联用户表）")
    private Long userId;

    @Schema(description = "最近一次签到的日期（如2025-11-26）")
    private LocalDate lastSignDate;

    @Schema(description = "当前连续签到天数")
    private Integer currentContinuousDays;

    @Schema(description = "今日是否已签到（1=是，0=否）")
    private Integer isSignedToday;

    @Schema(description = "更新时间")
    private LocalDateTime updateTime;
}